import service from '@/utils/request'


export const handleAlert = (data: object) => {
    return service.post('/alert/alert/message/handle', data)
}

export const getAlertMessageDetail = (id: number) => {
    return service.get(`/alert/alert/message/info?alertMessageId=${id}`)
}

export const getAlertImageUrl = (params: any) => {
    return service.post('alert/alert/message/detail/page', params)
}

export const getUnhandledAlertMessage = (locationGroup?: string) => {
    return service.post('/monitor/alert/message/unhandled/list', { locationGroup })
}

export const getAlertData = (params) => {
    return service.post('/alert/alert/message/list', params)
}

export const getAlertList = (params) => {
    return service.post('/alert/alert/message/dashboard/list', params)
}
// * 处理事件信息记录
export const handleAlertMessage = (params) => {
    return service.post('/alert/alert/message/detail/batch/handle', params)
}

// * 获取事件明细
export const getAlertMessageDetails = (params) => {
    return service.post('/alert/alert/message/detail/page', params)
}

//* 处理详情
export const handleAlertMessageDetail = (params) => {
    return service.post('/alert/alert/message/handle/page', params)
}